package com.lagou.cluster;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @ProjectName: S2-2
 * @Title: com.lagou.cluster.Application
 * @Package: PACKAGE_NAME
 * @Description: 程序启动入口
 * @author: Ian
 * @date: 3/19/2021 11:13 AM
 * @version: V1.0.0
 * @Copyright:
 */
@SpringBootApplication
public class Application extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(Application.class);
    }
}
